// In App.js in a new project 
import { createStackNavigator, createAppContainer } from "react-navigation"; 
import { TabNav } from './TabNav';

// 路由页面
import Details from './routes/details'
const AppNavigator = createStackNavigator(
  {
    Home: TabNav,
    Details:Details
  },
  {
    initialRouteName: "Home",
    /* 主屏幕的标题配置在这里 */
    navigationOptions:{
      headerStyle:{
          backgroundColor:'#f45lle',
      },
      headerTintColor:'#fff',
      headerTitleStyle:{
          fontWeight:'bold'
      }
    }
  }
);

const AppContainer = createAppContainer(AppNavigator);
export default AppContainer;